// Decompiled by Jad v1.5.7f. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   CourseDBService.java

package com.iphaeton.persistence.spring;

import com.iphaeton.common.helper.ContextHelper;
import java.sql.Connection;
import java.sql.SQLException;
import javax.sql.DataSource;
import org.apache.log4j.Logger;
import org.springframework.context.ApplicationContext;

public class CourseDBService
{

    public CourseDBService()
    {
    }

    public static Connection getConnection()
        throws SQLException
    {
        Connection con = null;
        ApplicationContext context = ContextHelper.getContext();
        DataSource ds = (DataSource)context.getBean("dataSource");
        con = ds.getConnection();
        logger.debug("Get a connection from dataSource in applicationcontext!");
        return con;
    }

    private static transient Logger logger;
    static Class class$0; /* synthetic field */

    static 
    {
        logger = Logger.getLogger(com.iphaeton.persistence.spring.CourseDBService.class.getName());
    }
}
